import { request } from "../../utils/request.js"

const courseList = () => {
    return request({
        url: '/course/list'
    })
}

const courseHotList = () => {
    return request({
        url: '/course/list/hot'
    })
}

const courseRecommendList = (tag) => {
    return request({
        url: '/course/list/recommend?tag=' + tag
    })
}


const courseDetail = (id) => {
    return request({
        url: '/course/detail?id=' + id
    })
}

export {
    courseList, courseHotList, courseRecommendList, courseDetail
}